<template>
  <div class="page-layout">
    <header v-show="isShow">
      <div class="logoText">BI管理系统</div>
    </header>
    <div class="main">
      <aside v-show="isShow">
        <aside-div></aside-div>
      </aside>
       <section>
         <router-view />
       </section>
    </div>
  </div>
</template>

<script>
import AsideDiv from '../../components/asideDiv'
export default {
  data () {
    return {
    }
  },
  computed: {
    'isShow' () {
      return this.$store.state.isShow
    }
  },
  components: {
    AsideDiv
  }
}
</script>

<style lang="less" scoped>
.page-layout {
  display: flex;
  flex-direction: column;
  header {
    height: 62px;
    background-color: #001529;
    .logoText {
      background:#d9d9d9;
      border-radius:2px;
      width:152px;
      height:32px;
      font-family: 'PingFangSC-Regular';
      font-size:16px;
      color:#ffffff;
      line-height:32px;
      text-align: center;
      transform: translate(24px, 16px);
    }
  }
  .main {
    flex: 1;
    display: flex;
    aside {
      width: 200px;
      height: 100%;
      background-color: #001529;
      height: 100%;
    }
    section {
      height: 100%;
      flex: 1;
      position: relative;
      padding: 0;
      box-sizing: border-box;
    }
 }
}
</style>
